import request from '@/utils/request'

// 查询计划排程列表
export function listScheduleLine(query) {
  return request({
    url: '/mes/scheduleLine/list',
    method: 'get',
    params: query
  })
}

// 查询计划排程详细
export function getScheduleLine(lineId) {
  return request({
    url: '/mes/scheduleLine/' + lineId,
    method: 'get'
  })
}

// 新增计划排程
export function addScheduleLine(data) {
  return request({
    url: '/mes/scheduleLine',
    method: 'post',
    data: data
  })
}

// 修改计划排程
export function updateScheduleLine(data) {
  return request({
    url: '/mes/scheduleLine',
    method: 'put',
    data: data
  })
}

// 删除计划排程
export function delScheduleLine(lineId) {
  return request({
    url: '/mes/scheduleLine/' + lineId,
    method: 'delete'
  })
}
